package com.example.demo.dao;

import com.example.demo.model.buisness;
import com.example.demo.model.dish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface buisnessDAO {
    List<buisness> listAllBuisness();
    int add(buisness buisness);

    int update(buisness buisness);

    int delete(@Param("id") int id);

    buisness findByBuisnessName(@Param("BuisnessName") String buisnessName);
}
